package controller.commands;

import model.graphic.objects.Graphical;

/**
 *
 * @author Ben
 */
public class SetVisibleCommand extends BasicCommand {
    private Graphical g;
    private boolean visible;

    public SetVisibleCommand(Graphical g, boolean visible) {
        this.g = g;
        this.visible = visible;
    }

    @Override
    public void execute() {
        gmodel.setGraphicalVisible(g, visible);
    }
}
